package com.my.ycv51.ycinit.en;


import android.os.Parcel;
import android.os.Parcelable;


/**
 * The error correction of the encoder encode.
 *
 * @Author MRH
 */
public enum ErrorCorrectionL implements Parcelable {

    L(0),
    M(1),
    Q(2),
    H(3);

    ErrorCorrectionL(int l) {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(ordinal());
    }

    public static final Creator<ErrorCorrectionL> CREATOR = new Creator<ErrorCorrectionL>() {

        @Override
        public ErrorCorrectionL createFromParcel(Parcel source) {
            return ErrorCorrectionL.values()[source.readInt()];
        }

        @Override
        public ErrorCorrectionL[] newArray(int size) {
            return new ErrorCorrectionL[size];
        }
    };
}
